import { createApiRequest as cri } from "@/utils";

async function createApiRequest(method, url, data) {
    try {
        return cri(method, url, data)
    } catch (error) {
        console.log(error)
    }
}

export function loginApi(formData) {
    return createApiRequest('POST', 'authorizations', formData)
}

export function getProfileApi() {
    return createApiRequest('GET', 'user/profile')
}


